<!DOCTYPE html>
<html>

<head>
  <script src="../dist/hdevice.js"></script>
</head>

<body>
  kkk
</body>
<script>
    hdevice.debug();
    
  var userList = [{ userId: "sdfsdfsdf", lable: "small", publisherId: "35354" }, { userId: "3543543", lable: "lagre", publisherId: "54544456" }];
  Array.prototype.getObjByArrPropetry = function (prototypeArr, ValArr) {
    try {
      let str = '';
      prototypeArr.forEach((v, i) => {
        str === '' ? str = 'item["' + v + '"]=="' + ValArr[i] + '"' : str += '&& item["' + v + '"]=="' + ValArr[i] + '"';
      });
      return this.filter((item) => {
        return eval(str);
      });
    } catch (error) {
      return [];
    }
  }
</script>

</html>